export function getStorage(name: string) {
    return JSON.parse(localStorage.getItem(name) || '')
}

export function setStorage(key: string, value: any) {
    localStorage.setItem(key, JSON.stringify(value))
}